/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Homework.demo01;

/**
 *
 * @author 黄璐 陈健铭
 */
import java.util.*;
public class NewClass3 {

    private String name;
    private String phone;
    private String dizhi;

    public NewClass3() {
    }

    public NewClass3(String name, String phone, String dizhi) {
        this.name = name;
        this.phone = phone;
        this.dizhi = dizhi;
    }

    public static void set() {
        NewClass3 person = new NewClass3();
        List s = new ArrayList();
        person.name = "黄璐";
        person.phone = "14795546542";
        person.dizhi = "广西南宁市";
        s.add(person.name);
        s.add(person.phone);
        s.add(person.dizhi);
        System.out.println(s.get(0));
        System.out.println(s.get(1));
        System.out.println(s.get(2));
    }

    public static void main(String[] args) {
        set();
    }
}



